<%@ page contentType="text/html;charset=utf-8" language="java"
	pageEncoding="UTF-8" import="java.util.Date"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <title>售后管理系统</title>
    <link rel="stylesheet" href="./assest/css/lib/normalize.css">
    <link rel="stylesheet" href="./assest/css/lib/bootstrapValidator.min.css">
    <link rel="stylesheet" href="./assest/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./assest/css/login.css">
</head>
<script>
	if (this.parent != this) {
	    top.location.href = document.location.href;
	}
</script>
<body>
<div class="runmi-login-bg">
    <div class="bg-01"></div>
    <div class="bg-02"></div>
    <div class="bg-03"></div>
    <div class="bg-04"></div>
</div>
<div ></div>
<div class="main">
    <div class="login-box">
        <div class="login-logo"></div>
        <p class="text-center title">售后管理系统</p>
        <div class="login-from">
            <p class="submit-err-text">
            <c:if test="${error != ''}"><i class="runmi-icon errer-icon"></i><span>${error}</span></c:if>
            </p>
            <form id="loginFrom" action="${pageContext.request.contextPath}/login"	method="post">
                <div class="form-group">
                    <i class="runmi-icon from-icon user-icon"></i>
                    <input type="text" class="form-control" name="username"  value="${username}" placeholder="请输入用户名" />
                </div>
                <div class="form-group">
                    <i class="runmi-icon from-icon psd-icon"></i>
                    <input type="password" class="form-control" name="password" placeholder="请输入密码"/>
                </div>
                <div class="login-btn">
                    <button class="btn" type="submit">登录</button>&nbsp;&nbsp;&nbsp;&nbsp;

                </div>
            </form>
        </div>
    </div>
    <p class="copyright text-center">Copyright © - 上海润米科技有限公司</p>
</div>

</body>
<script src="./assest/js/lib/jquery.min.js"></script>
<script src="./assest/bootstrap/js/bootstrap.min.js"></script>
<script src="./assest/js/lib/bootstrapValidator.min.js"></script>
<script>
    var $loginFrom = $('#loginFrom');
	$loginFrom.bootstrapValidator({
		feedbackIcons:       {
			valid: 'glyphicon glyphicon-ok',
			invalid: 'glyphicon glyphicon-remove',
			validating: 'glyphicon glyphicon-refresh'
		},
        fields: {
            username: {
                message: '用户名验证失败',
                validators: {
                    notEmpty: {
                        message: '请输入用户名'
                    }
                }
            },
            password: {
                validators: {
                    notEmpty: {
                        message: '请输入密码'
                    }
                }
            }
        }
    })
</script>
</html>